<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
</head>
<body>
<select id="test"></select>
<script>
    $(function(){
        $.getJSON('citydata.js',function(data){
            //console.log(JSON.stringify(data));
            var html;
            $.each(data, function(index, item){
                html += '<option value="'+item.id+'">'+item.name+'</option>';
            });
            $('#test').append(html);
            console.log(html);
        })
    });

</script>
</body>
</html>